package com.goldcn.user.controller;

import com.goldcn.interceptor.SystemContext;
import com.goldcn.user.service.SysPaymentService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author Tim Peng
 * mail: lmn_022@163.com
 * Date: 2017/7/24
 * Time: 9:44
 * To change this template use File | Settings | File Templates.
 */
@Api(value = "获取支付方式")
@RestController
@RequestMapping(value = "/sysPayment")
public class SysPaymentController {

    @Autowired
    SysPaymentService sysPaymentService;

    @ApiOperation(value="获取支付方式")
    @RequestMapping(value = "/payMethod", method = RequestMethod.GET)
    public Object getPayment() {
        return sysPaymentService.getPaymentInfo(SystemContext.getCompanyID());
    }
}
